#include<bits/stdc++.h>
using namespace std;
inline int read()
{
    char c = getchar();
    int x = 0;
    bool flag = false;
    while(c < '0' || c > '9') c = getchar();
    while(c >= '0' && c <= '9')
    {
        x = (x << 3) + (x << 1) + int(c-'0');
        c = getchar();
    }
    return x;
}
const int N = 2e5+5;
int T,n,a[N];
int main()
{
    freopen("color.in","r",stdin);
    freopen("color.out","w",stdout);
    T = read();
    while(T--)
    {
        n = read();
        for(int i = 1;i <= n;i++) a[i] = read();
        puts("0");
    }
    return 0;
}
